<template>
  <div>
    <h3>子组件</h3>
    <button @click="emit('money',dallor)">给父亲100元</button>
  </div>
</template>

<script setup lang='ts' name="Child">
import emitter from '@/utils/emitter';
import { ref, reactive } from 'vue'

let dallor = ref(100);
const emit = defineEmits(['money']);

</script>


<style lang='scss' scoped>

</style>